home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,401 to 4,500 / aol-file-protocol-4400-4401-to-4500.zip / AOLDLs / PDA-Newton Development / ND+ NS-BASIC Press Release_FAQ / nsbasic.txt < prev   
Text File  |  2014-12-08  |  8KB  |  223 lines

  1. FOR IMMEDIATE RELEASE
  2. Contact:
  3. George Henne
  4. NS BASIC Corporation
  5. 416 264-5999
  6.  
  7. NS BASIC FOR THE NEWTON IS ANNOUNCED
  8.  
  9. TORONTO, JULY 1, 1994
  10.  
  11. NS BASIC, an implementation of the well-known BASIC
  12. programming language, is now available for the Newton. The
  13. product is aimed at the business, educational and scientific
  14. marketplaces.
  15.  
  16. Programs can be written directly on the Newton: no host system is
  17. required. The environment is completely interactive. A full
  18. complement of functions and data types is provided. Handwritten
  19. input, windowing and buttons are supported. Applications can
  20. create their own files or access built-in system information, such as
  21. Addresses, Notes and Calendar entries.
  22.  
  23. "BASIC has always been a simple language for programming
  24. applications quickly", said George Henne, President of NS BASIC
  25. Corporation, "It's going to be very helpful to people who want to
  26. make their Newtons more useful."
  27.  
  28. The product includes a 150 page user manual which explains each
  29. of the commands, statements and functions. Examples are provided
  30. throughout. Sample code which can be downloaded is also
  31. provided.
  32.  
  33. NS BASIC will appeal to users who have some exposure to the
  34. BASIC programming language or those who wish to learn it. The
  35. implementation is similar to many of the currently available versions
  36. of BASIC that run on other computer systems.
  37.  
  38. NS BASIC is available directly  for $99.00 from NS BASIC
  39. Corporation (416 265-5999) or through its distributors. Visa and
  40. Mastercard are accepted. NS BASIC Corporation can also be
  41. reached at 77 Hill Crescent, Toronto, Canada M1M 1J3, fax (416)
  42. 264-5888, or through the internet at gh@hookup.net.
  43.  
  44. NS BASIC FAQ: Jul 1, 1994
  45. NS BASIC Corporation
  46. Phone: 416 264-5999
  47. Fax: 416 264-5888
  48. Internet: gh@hookup.net
  49. CompuServe:  74431,412
  50.  
  51. What is Basic?
  52.  
  53. Basic is probably the world's most widely used computer programming
  54. langauge. Versions of it exist for virtually every make and model of
  55. computer. Simple programming constructs such as FOR...NEXT and
  56. GOSUB provide an easy, quickly-learned syntax. Basic is usually
  57. implemented an interactive language, allowing programmers to test their
  58. work as they go, and to easily modify and debug their code. It has resisted
  59. all attempts at standardization: there are numerous dialects in existence. It is
  60. widely used for business, educational and scientific applications.
  61.  
  62. What kind of Basic is this?
  63.  
  64. NS BASIC is implemented as a fully interactive implementation of Basic.
  65. As well as providing the full instruction set, it has extensions to take
  66. advantage of the Newton environment. If you don't find the specific version
  67. of a function or statement you may have used in another Basic, there is
  68. almost certainly an equivalent in NS BASIC.
  69.  
  70. What do I need to program in NS BASIC?
  71.  
  72. NSB can be programmed directly on the Newton without requiring a host
  73. system. Popup menus provide quick access to many commands and
  74. statements; other code can be input using the on screen keyboard or via
  75. handwritten input. Programs can also be downloaded via a serial port, or
  76. edited from a PC or Mac using a terminal emulator tied in through the serial
  77. port.
  78.  
  79. What data types are supported?
  80.  
  81. Integers, reals, floating point, strings, arrays and frames. A frame is a list
  82. of field names, each with a value that can be any of the data types (including
  83. another frame).
  84.  
  85. Can I create files?
  86.  
  87. Yes. For example, the statement CREATE CH,"MYFILE",NAME will
  88. create a file named MYFILE, indexed by NAME and open on channel CH.
  89.  
  90. Can I accept handwritten input?
  91.  
  92. Yes. The statement HWINPUT X will put up an edit box. The text the user
  93. enters will be returned in X. Options on this statement include putting up a
  94. prompt and a popup list of potential input values.
  95.  
  96. Is it a substitute for NTK?
  97.  
  98. No. The NTK (Newton Tool Kit) is still the development environment of
  99. choice for serious application development. The licence fee is for NTK is
  100. $895 and it requires a powerful Macintosh to run. An experienced and
  101. skilled programmer will also need a few months to become fully productive
  102. with NTK. NS BASIC is well suited for the casual programmer who needs
  103. to develop less complex applications.
  104.  
  105. How much memory does it use?
  106.  
  107. NS BASIC itself requires 120K. A memory card is recommended for uses
  108. with the original Newton Message pad, the upgraded Message Pad or the
  109. Message Pad 100. Programs do not take up any additional internal memory
  110. while running, other than space used for user variables. The code itself
  111. remains resident on the card (except for the current statement) and does not
  112. impact internal memory. Programs can therefore be of almost any size,
  113. subject to space available on the card. The CHAIN statement can be used to
  114. segment programs.
  115.  
  116. Can I access system information?
  117.  
  118. Yes. For example, the following statement outputs the user's name from the
  119. internal settings.
  120.  
  121. PRINT getglobals().userconfiguration.name
  122.  
  123. Furthermore, it is possible to access the system information, such as the
  124. Notepad. Here's a short program that creates a note:
  125.  
  126. 0010 rem write to notepad
  127. 0020 open ch,"notes",timestamp
  128. 0030 LET n={data:[{}]}
  129. 0040 LET n.viewstationery='paperroll
  130. 0050 LET n.height=100
  131. 0070 LET n.data[0].viewstationery='para
  132. 0080 LET n.data[0].viewbounds={left:0, right:200, top:0, bottom:100}
  133. 0090 LET n.data[0].text="This note was created by NS BASIC"
  134. 0095 LET n.data[0].viewfont=getglobals().userconfiguration.userfont
  135. 0100 LET n.timestamp=time()
  136. 0110 put ch,n
  137.  
  138. Can I program windows and buttons?
  139.  
  140. Yes. Windows are passive boxes that hold text. You can define the bounds,
  141. the boundary, the pattern for the boundary, the fill pattern and the text font,
  142. style and size. Multiple windows can be displayed simultaneously.
  143.  
  144. Buttons are implemented as windows that execute a GOTO LineNumber
  145. when they are tapped. With this, event driven programs can be created.
  146.  
  147. Can I access other applications?
  148.  
  149. Yes. It is even possible to pass information to some other applications as
  150. well. For example, to pass an array of numbers to Pelican Software's
  151. QChart to product a graph, use the following code:
  152.  
  153. 0010 LET a=[1,3,6,2,4]
  154. 0020 LET getroot().|qf_qchart:donv|.ddxfrom='|basic:nsbasic|
  155. 0030 LET x:=getroot().|qf_qchart:donv|:ddxscript(1,5,a,nil)
  156.  
  157. The Qchart application will automatically open and produce the graph.
  158.  
  159. Does it come with a manual?
  160.  
  161. Yes. An approximately 150 page manual, (spiral bound so it lies flat)
  162. provides a complete description of the various commands, statements and
  163. functions, together with examples for each one. The manual is about the
  164. same size as the Newton, so it's easy to carry along with you.
  165.  
  166. Can I distribute applications I write to other users?
  167.  
  168. Yes, providing they have NS BASIC on their Newtons. Programs can be
  169. easily uploaded and downloaded via a serial port.
  170.  
  171. Can I program it using a regular keyboard?
  172.  
  173. Yes, either from a Macintosh or DOS or Windows PC. All character input
  174. and output is redirected through your host PC, so it's easy to work directly
  175. using your PC's keyboard and screen.
  176.  
  177. How fast is it?
  178.  
  179. NS BASIC is an interpretive language. However, since interpretation is
  180. done as statements are entered, not at run time, performance is optimized.
  181. Statements take varying amounts of time to execute: a simple FOR/NEXT
  182. loop executes at the rate of approximately 26 statements per second on an
  183. MP/100. Advantages of interpreters include the ability to examine and
  184. change code in  the middle of execution and rapid development.
  185.  
  186. I've developed an application in NS BASIC. Can I distribute it?
  187.  
  188. At the moment, the full NS BASIC application is required to run a program:
  189. each Newton device that will run your program will need its own NS
  190. BASIC licence. We plan to release a royalty free run time for free
  191. distribution, however there are still technical issues to be resolved.
  192.  
  193. What about support?
  194.  
  195. Send question/problems to our Support Line by one of the following:
  196. fax: (416) 264-5888
  197. Internet: gh@hookup.net
  198. CompuServe: 74431,412
  199.  
  200. Will there be future releases?
  201.  
  202. Yes. We intend to continually enhance NS BASIC. Send your suggestions
  203. to the Support Line: we'd love to hear from you about them.
  204.  
  205. This sounds great! Where can I buy it, and for how much?
  206.  
  207. Call our order line: (416) 264-5999 (24 hours). The price is $99.00 plus
  208. shipping, payable by Visa or Mastercard. We are also in the process of
  209. setting up distributors.
  210.  
  211.  
  212.  
  213.  
  214. Information on this FAQ is subject to change. Contact NS BASIC for latest
  215. information. Trademarks used in this FAQ are the property of their
  216. respective owners.
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.